﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using Common.Library;
using OnlineVideos.UI;

namespace Social_Celebrities.Views
{
    public partial class AddAccount : PhoneApplicationPage
    {
        public AddAccount()
        {
            InitializeComponent();
           
        }


        private void FaceStack_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            if (string.IsNullOrEmpty(AppSettings.FaceBookAccessToken))
            {
                NavigationService.Navigate(new Uri("/Views/FacebookLoginPage.xaml", UriKind.Relative));
            }
        }

        private void TwitStack_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            TwitterLoginPage p = new TwitterLoginPage();
            if (p.getAccessToken() == null)
            {
                NavigationService.Navigate(new Uri("/Views/TwitterLoginPage.xaml", UriKind.Relative));
            }
        }

        private void BlogStack_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            if (string.IsNullOrEmpty(AppSettings.BloggerAccessToken))
            {
                NavigationService.Navigate(new Uri("/Views/BloggerLogin.xaml", UriKind.Relative));
            }
        }

        private void imgTitle_MouseEnter(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            NavigationService.Navigate(NavigationHelper.MainPanoramaPage);
        }
    }
}